package com.dtwave.wechat.service.provider.database.entity;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.dtwave.wechat.service.provider.database.entity.BaseEntity;

import com.baomidou.mybatisplus.annotations.Version;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 资源表
 * </p>
 *
 * @author liuwenxiang
 * @since 2018-12-20
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("bas_resource")
public class Resource extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @TableId(value = "resource_id", type = IdType.AUTO)
    private Long resourceId;
    private String uuid;
    /**
     * 资源名称
     */
    @TableField("resource_name")
    private String resourceName;
    /**
     * 资源code
     */
    @TableField("resource_code")
    private String resourceCode;
    /**
     * 父级编号
     */
    @TableField("parent_id")
    private String parentId;
    /**
     * 所有父级编号
     */
    @TableField("parent_ids")
    private String parentIds;
    /**
     * 权限标识
     */
    private String permission;
    /**
     * 菜单链接
     */
    private String href;
    /**
     * 排序
     */
    private Long sort;
    /**
     * 图标
     */
    private String icon;
    /**
     * 是否在菜单中显示
     */
    @TableField("is_show")
    private String isShow;
    /**
     * 描述
     */
    private String descr;
    /**
     * 创建人
     */
    @TableField("c_user_id")
    private String cUserId;
    /**
     * 修改人
     */
    @TableField("m_user_id")
    private String mUserId;


}
